/***************************************************************************
 *            mail_test.c
 *
 *  Mon May 21 22:15:34 2007
 *  Copyright  2007  kf701
 *  Email <kf701.ye AT gmail.com>
 ****************************************************************************/


#include <unistd.h>
#include <syslog.h>

#include "factory.h"

int main()
{
	debug_verbose = 4;

	mail_t mail;
	mail.smtp = "192.168.1.3";
	mail.passwd = "xxxxxx";
	mail.from = "kf701@ubuntu";
	mail.numto = 2;
	mail.to = (char**)malloc(sizeof(char*)*mail.numto);
	mail.to[0] = "yekexue@vtonetech.com";
	mail.to[1] = "kf701.ye@gmail.com";
	mail.subject = "kf701 lib mail test";
	mail.context = "xxx ---- xxx";
	if( send_mail( &mail ) )
		sys_log("send mail success\n");
	else
		sys_err("send mail error\n");

	return 0;
}
